<?php
namespace Home\Controller;
use Common\Controller\HomeBaseController;

class IndexController extends HomeBaseController {
    public function index(){
        //echo 'Hello World!';
        $this->display();
    }


    public function test(){

        $this->display();
    }


    public function test2()
    {
        if(IS_POST){
            $data = I('post.test');
            //sleep(2);
            if(empty($data)){
                $this->ajaxReturn(array('status'=>1,'msg'=>'请填写相关的数据'));
            }else{
                $this->ajaxReturn(array('status'=>0,'msg'=>'OK'));
            }
        }
        $this->display();
    }



}